﻿using DevExpress.XtraEditors;
using Utilities;

namespace QuanLyKhachSan
{
    public partial class FormNhatKy : XtraForm
    {
        private ReadFile parse = new ReadFile();

        public FormNhatKy()
        {
            InitializeComponent();
        }

        private void LoadDiary()
        {
            while (parse.ReadNext())
            {
                rtDiary.Text += parse.Data+"\n";
            }
            parse.CloseFile();
        }

        private void FormNhatKy_Load(object sender, System.EventArgs e)
        {
            LoadDiary();
        }
    }
}
